<template>
  <div>
    Details:{{ id }}

    <button @click="backToHome">back</button>
  </div>
</template>

<script>
export default {
  props: ["id"],
  mounted() {
    console.log(this.$route);
  },
  methods: {
    backToHome() {
      // this.$router.back();
      // number
      // 下一步
      this.$router.go(-1);
    },
  },
};
</script>

<style></style>
